<?php 
	header("content-type:text/html;charset=utf-8");
	$num = isset($_POST['num']) ? $_POST['num'] :‘’;
	$num = isset($_POST['pwd']) ? $_POST['pwd'] :‘’;
	$dsn = "mysql:host=127.0.0.1;dbname=jixw";
	$pdo = new PDO($dsn,"root","root");
	$res = $pdo->exec("insert into stu calues(null,'$num','$pwd')");
	if ($resf) {
		echo "<script>alert('注册成功');location.href='deng.html'</script>";
	}
 ?>